<!DOCTYPE html>
<html>
<head>
   <title><%=title%></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/jQuery.md5.js"></script>
    <script src="/js/common.js"></script>
 </head>

<body>
 <p>登录成功，欢迎来到此博客。</p>
 <h1><%=title%></h1>
    <a href="/article1"><h5>深入浅出nodejs</h5></a>
    <a href="/article2"><h5>nodejs开发指南</h5></a>
    <div id="list"></div>
    <script>
      function getTitle(){
          var list="";
          $.ajax({
              type:"get",
              url:"/getTitle",
              data:"time=" + new Date(),
              success :function(result){
                  if (result != '-1') {
                        for (var i = 0; i < result.length; i++) {
                           list = list + "<h5><a href='/articleContent1'>" + result[i].title+"</a></h5>"
                        }

                   $('#list').html(list);
                  }
                }
          });
      }
       getTitle();
     </script>

     <p> <a  href="/report">发表新文章</a></p>
</body>
</html>